package org.qsoft.util;

import java.util.Date;
import java.util.HashMap;

import org.qsoft.rpcfx.bean.IObjectWriter;
import org.qsoft.rpcfx.bean.json.JsonObjectWriter;

public class JsonUtils {

	public static String create(Object obj) {
		
		IObjectWriter writer = new JsonObjectWriter();
		writer.write(obj, null);
		
		return writer.result();
	}

//	public static void main(String[] args) {
//		HashMap map = new HashMap();
//		map.put("sss", new Date().getTime());
//		
//		System.out.println(create(map));
//		
//		System.out.println(Date.parse("Mon Nov 30 19:16:38 CST 2009"));
//		
//	}

}
